package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.system.domain.Video;
import com.ruoyi.system.service.IVideoService;
import com.ruoyi.system.service.impl.LiveModularServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 直播模块Controller
 *
 * @author sjt
 * @date 2021-12-1
 */
@RestController
@RequestMapping("/VideoModular")
public class VideoModularController extends BaseController {
    @Autowired
    private IVideoService videoService;
    /**
     * 根据类别获取视频列表
     */
    @GetMapping("/VideoList")
    public TableDataInfo VideoList(Video video)
    {
        startPage();
        List<Video> list = videoService.selectVideoList(video);
        return getDataTable(list);
    }
}
